"""user路由"""

from flask import Blueprint
from flask_restful import Api
from controller import User


user = Blueprint("user", __name__, url_prefix="/api/user")
api = Api(user)

api.add_resource(User.Register, "/register")
api.add_resource(User.Login, "/login")
api.add_resource(User.RefreshToken, "/refresh-token")
api.add_resource(User.Protected, "/protected")
api.add_resource(User.Me, "/me")
api.add_resource(User.GetUserInfo, "/getUserInfo")
